﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UIWindow.Lucifer;

namespace UIWindow.Models.S7NET
{
    public class S7ParamModel : IProtocol
    {
        /// <summary>
        /// 起始地址
        /// </summary>
        public int Address { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        public byte[] Value { get; set; }

        public bool IsBytes { get; set; } = true;

        /// <summary>
        /// bool第几位
        /// </summary>
        public int BitAddress { get; set; }
        /// <summary>
        /// 真假
        /// </summary>
        public bool TF { get; set; } = true;

        public byte[] GetStream()
        {
            return new byte[0];
        }

        public IProtocol Handle(byte[] bytes)
        {
            return null;
        }
    }
}
